package com.demo.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

@ApiModel(value = "树结构信息")
@Data
@AllArgsConstructor
public class TreeEntity {
 
    @ApiModelProperty("唯一id")
    private Integer id;
 
    @ApiModelProperty("名称")
    private String name;
 
    @ApiModelProperty("父类id")
    private Integer parentId;
 
    @ApiModelProperty("子节点集合")
    private List<TreeEntity> childNodeList;
}
